﻿package clips
{	
	import flash.display.DisplayObject;
	import events.MoveEvent;

	public class Poignee_mc extends Draggable
	{
		public var _target_mc:DisplayObject;
		
		public function Poignee_mc( target_mc:DisplayObject )
		{
			_target_mc = target_mc;
			addEventListener( MoveEvent.MOVING, moving );
		}
		private function moving( event:MoveEvent = null ):void
		{
			_target_mc.x = event.point.x;
			_target_mc.y = event.point.y;
		}
	}
}